-- GENERATED SPELL FOR [Azure Manashaper] --


function spell0_31401(pUnit, Event) --@Arcane Blast,n/a--
pUnit:FullCastSpellOnTarget(10833,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31401', 636, 1)
end

function spell1_31401(pUnit, Event) --@Slow,n/a--
pUnit:FullCastSpellOnTarget(25603,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31401', 5000, 1)
end

function Sorts_31401(pUnit, Event)
local choix_sorts_31401 = math.random(0, 1)
if choix_sorts_31401 == 0 then
pUnit:RegisterEvent('spell0_31401', 1, 1)
end
if choix_sorts_31401 == 1 then
pUnit:RegisterEvent('spell1_31401', 1, 1)
end
end

function mob31401_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31401', math.random(1500, 3000), 1)
end

function mob31401_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31401_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31401_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31401, 1, 'mob31401_Action')
RegisterUnitEvent(31401, 2, 'mob31401_Leave')
RegisterUnitEvent(31401, 3, 'mob31401_Kill')
RegisterUnitEvent(31401, 4, 'mob31401_Die')
